package com.eight.feign;

import com.eight.vo.ComResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("rentcar-rabbit")
public interface RabbitFeign {
    /**
     * 创建一个车辆订单RabbitMq消息
     * @param id 消息的id也就是uuid
     * @return 结果
     */
    @GetMapping("/rabbit/car/makeCarOrder/{id}")
    ComResult makeCarOrder(@PathVariable String id);
}
